<div id="MainContent">
    <div>
        <div class="pageerrorcontainer-validator">
            <div class="error-iterator"></div>
        </div>
    </div>
    
    <?php if ($this->succesMessage != ""): ?>
    <div class='pagemcontainer'>
        <p class='pagemessage'>
            <img src="<?php echo $this->IMAGE_PATH;?>icons/system/accept.gif" class="systemicon" alt="Success" title="Success" />
            <label class='errorlabel'><?php echo $this->succesMessage; ?></label>
        </p>
    </div>
    <?php endif; ?>			
    
    <?php if (count($this->errorMessageArray) > 0): ?>
        <div class="pageerrorcontainer">
            <?php foreach ($this->errorMessageArray as $erroValue): ?>
                <div class="pageoverflow">
                    <img src="<?php echo $this->IMAGE_PATH;?>icons/system/stop.gif" class="systemicon" alt="Error" title="Error" />
                    <label class="errorlabel"><?php echo $erroValue; ?></label>
                </div>
            <?php endforeach; ?>				
        </div>
    <?php endif; ?>			
    <div class="clearb">&nbsp;</div>
    <div id="preference"></div>
    <div class="pagecontainer pageoverflow">
        <div class="pageheader">
            <?php echo $this->mode;?> Edit Profile
            <div class="field-required">* Fields are required </div>
        </div>
        <div style="clear: both;"></div>
        <form id="profile-form" name="profile-form"  enctype="multipart/form-data"  action="" method="post">
            
            

            
            <?php echo $this->form->cus_id; ?>
            <div id="page_content">
                <div class="pageoverflow">
                    <div class="pagetext">Name<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_name; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Address:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_address; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Telephone:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_telephone; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Mobile<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_mobile; ?>
                    </div>
                </div>
                
                
                <div class="pageoverflow display-none">
                    <div class="pagetext">Email<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->lgn_email; ?>
                    </div>
                </div>
                
                
                
                <div class="pageoverflow">
                    <div class="pagetext">Clients Status<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_status; ?>
                    </div>
                </div>
                
                
                <div class="pageoverflow">
                    <div class="pagetext">Notes:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_notes; ?>
                    </div>
                </div>
                
                
            
                <div class="pageoverflow">
                    <div class="pagetext">Company Name:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_companyname; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Company email address:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_companyemail; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Company address:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_companyaddress; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Office telephone:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_companytelephone; ?>
                    </div>
                </div>
                
                
                <div class="pageoverflow">
                    <div class="pagetext">Office fax number:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_companyfax; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Office Mobile:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_companymobile; ?>
                    </div>
                </div>
                    
                <div class="pageoverflow display-none">
                    <div class="pagetext">Status<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->lgn_active; ?>
                    </div>
                </div>
                    
                <div class="pageoverflow">
                    <div class="pagetext">Password<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_password; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <div class="pagetext">Confirm Password<span class="error-star">*</span>:</div>
                    <div class="pageinput">
                        <?php echo $this->form->cus_confirmpassword; ?>
                    </div>
                </div>
                
                <div class="pageoverflow">
                    <p class="pagetext">&nbsp;</p>
                    <p class="pageinput">
                        <?php echo $this->form->Save; ?>
                        <?php echo $this->form->Reset; ?>
                    </p>
                </div>
                <div style="clear: both;"></div>
            </div>
        </form>
    </div>
    <p class="pageback">
        
        <a class="pageback" href="<?php echo $this->url(array('controller' => 'index', 'action' => 'index'), null, TRUE) ?>">&#171; Back to Home</a>
    </p>
    <div class="clearb"></div>
</div>